﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Exceptions
{
    public class RemoteGameConnectionException : UIException, IVRacerException
    {
        public RemoteGameConnectionException(Exception innerException)
            : this("This application can't connect to the server. Check if you have access to the Internet.", innerException)
        {

        }

        public RemoteGameConnectionException(string message, Exception innerException)
            : base(message, innerException)
        {
            Title = "Cannot connect to the server";
            Code = 2;
            Details = "Vector Racer uses 'scores.xml' file to store its highscores information for track. This message means that this application can't access this file. It is possible that this file was accidentally moved or renamed, otherwise you might need to reinstall this track.";
        }

        #region IVRacerException Members

        public bool Critical
        {
            get { return false; }
        }

        #endregion
    }
}
